<%@ page language="java" import= "java.util.*" import= "java.sql.*" import = "orm.*"  pageEncoding="utf-8" errorPage="errorPage.jsp"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<% User stu  =(User) session.getAttribute("Student");
    if(stu ==null)
       response.sendRedirect(path + "/index.jsp");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href = <%=basePath%> />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>成绩查询</title>
<link href="css/sStyles.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<!-- CONTAINER START -->
<div id = "container">
<!-- HEADER START -->
        <div id = "top">
        	<div id = "navigation">
            	<html:link forward = "go_to_student" styleClass="link">&nbsp;&nbsp;&nbsp;&nbsp;首页</html:link>
        	    <html:link forward = "go_to_stu_notice" styleClass="link">&nbsp;&nbsp;&nbsp;&nbsp;通知</html:link>
        	    <html:link href="startexam.do?action=selectcourse" styleClass="link">&nbsp;&nbsp;&nbsp;&nbsp;考试中心 </html:link>
                <html:link page="/index.jsp" styleClass="link">&nbsp;&nbsp;&nbsp;&nbsp;成绩查询</html:link>
                <html:link page="/message.jsp" styleClass="link">&nbsp;&nbsp;&nbsp;&nbsp;留言板</html:link>
            </div>
        </div>
        <!-- HEADER END -->
        
    <!-- LOGIN START -->
        <div id = "login">
        	<div id = "name">
        	<%=stu.getRealname() %>
            </div>
            <html:link page="/student/studentInfo.jsp" styleClass="viewInfo">·查询个人信息</html:link>
        	<p><html:link page="/student/stuModifyPwd.jsp" styleClass="modifyPwd">·修改密码</html:link></p>
        	<p><html:link page="/student/letter.jsp" styleClass="letter">·站内信</html:link></p>
            <p><html:link forward="logout" styleClass="logout">·注销登陆</html:link></p>
  </div>
        <!-- LOGIN END -->
        
        <!-- CLOCK START -->
  <div id = "clock">
       		<iframe src="index/clock.html" height="407" width="296" frameborder="0" scrolling="no"
            		marginheight="0" marginwidth="0" id="clockFrame" name="clockFrame"></iframe>
</div>
        <!-- CLOCK END -->
        
        <!-- MAIN START -->
      	<div id = "main">
   		  <div id="cj_1"><strong>考试日期&nbsp;&nbsp;：</strong>
   	        	<select name="cj_year" id="cj_year" style="width:80px; height:20px;">
   	            	<option selected="selected">2009</option>
   	            	<option>2010</option>
   	            	<option>2011</option>
   	            	<option>2012</option></select>年
      	    	<select name="cj_year2" id="cj_year2" style="width:50px; height:20px;">
      	      		<option value="1">1</option>
      	      		<option value="2">2</option>
      	      		<option value="3">3</option>
      	      		<option value="4">4</option>
      	      		<option value="5">5</option>
      	      		<option value="6">6</option>
      	      		<option value="7">7</option>
      	      		<option value="8">8</option>
      	      		<option value="9">9</option>
      	      		<option value="10">10</option>
      	      		<option value="11">11</option>
      	      		<option value="12">12</option></select>月
      	      	<input type="submit" name="cj_b1" id="cj_b1" value="选择" style="width:50px" />
            <table width="483" height="227" border="1" cellpadding="2" cellspacing="2">
                    <tr>
                      <td width="117" class="cj_title">科目</td>
                        <td width="157" class="cj_title">成绩</td>
                        <td width="209" class="cj_title">详情</td>
                    </tr>
                    <tr>
                        <td class="cj_course_name">软件工程概论</td>
                        <td class="marks">95</td>
                        <td align="center"><form id="form1" name="form1" method="post" action="">
                        <input type="submit" name="cj_b2" id="cj_b2" value="查看详情" style="width:70px;height:20px;" /></form></td>
                    </tr>
                    <tr>
                        <td class="cj_course_name">数据库原理</td>
                        <td class="marks">90</td>
                        <td align="center">
                            <input type="submit" name="cj_b3" id="cj_b3" value="查看详情" style="width:70px;height:20px;" /></td>
                    </tr>
                    <tr>
                        <td class="cj_course_name">软件测试</td>
                        <td class="marks">85</td>
                        <td align="center">
                        <input type="submit" name="cj_b4" id="cj_b4" value="查看详情" style="width:70px;height:20px;" /></td>
                    </tr>
            </table>
          </div>
      	</div>
   	<!-- MAIN END -->
        
   	<!-- FOOTER START -->
   	<div id = "footer">
  </div>
   	<!-- FOOTER END -->
        
  </div>
    <!-- CONTAINER END -->
    
</body>
</html>